﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using Common.Services.ServiceContracts;
using ProductsServer.BL;
using ProductsServer.DA;
using ProductsServer.Core.Entities;

namespace ProductsServer.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "ServiceTest" in code, svc and config file together.
    public class ServiceTest : IServiceTest
    {
        public string DoWork()
        {
            List<Predicate> pred = new List<Predicate>();
            pred.Add(new Predicate("Name", "mat", Common.Framework.GlobalEntities.Enums.PredicateType.StartsWith));
            BLGenericSearch blGen = new BL.BLGenericSearch();
            blGen.Search<Material>(new Core.Entities.GenericSearchData() { TableName = "Material", Predicates = pred });
            return "Testing 1 2 3";
        }
    }
}
